package com.foreknow.demo1;

public class PersonImpl extends Person {
    @Override
    public void eat(String name) {
        System.out.println(name+"eat");
    }

    @Override
    public void study() {
        System.out.println("study");
    }

    @Override
    public void sleep() {
        System.out.println("sleep");
    }

    public static void main(String[] args) {
        Person person = new PersonImpl();
        person.eat("fender");
        person.study();
        person.sleep();
    }
}
